﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using Telerik.Charting;
using Telerik.Windows.Controls;


namespace Telerik.Examples.WP.Chart.Dashboards
{
    public partial class Amos : UserControl
    {
        private double[][] barValues = new double[4][];

        public Amos()
        {
            InitializeComponent();

            //aa.Series[0].Background = Brush()
            //aa.Series[0].Background = Colors.Green;
            //aa.Series[0].Background = Colors.Yellow;
            //aa.Series[0].Background = Colors.Red;

         
            for (int i = 0; i < 4; i++)
            {
                this.barValues[i] = ExampleHelper.GenerateValues(4, 20, 40);
            }

            int seriesCount = this.aa.Series.Count;
            for (int i = 0; i < seriesCount; ++i)
            {
                aa.Series[i].ItemsSource = barValues[i];
            }
        }
    }
}
